package com.shop.loan.mapper;

import com.shop.loan.model.entity.LoanOrderPayLogByMybatis;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

public interface LoanOrderPayLogByMybatisMapper {
    int deleteByPrimaryKey(Long id);

    int insert(LoanOrderPayLogByMybatis row);

    int insertSelective(LoanOrderPayLogByMybatis row);

    LoanOrderPayLogByMybatis selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(LoanOrderPayLogByMybatis row);

    int updateByPrimaryKey(LoanOrderPayLogByMybatis row);

    LoanOrderPayLogByMybatis selectByPayOrderId(@Param("payOrderId") String payOrderId);

    BigDecimal selectSum(LoanOrderPayLogByMybatis loanOrderPayLogByMybatis);

    BigDecimal selectSumByOverdue(LoanOrderPayLogByMybatis loanOrderPayLogByMybatis);

    BigDecimal selectSumByBillId(@Param("billId") Long billId, @Param("id") Long id, @Param("payType") Integer payType);
}